<?php
class ModelMartCrmManagePoint extends Model {
    public function getParameter()
    {
    $sql = "SELECT * FROM " . DB_PREFIX . "parameter";
    $query = $this->db->query($sql);	
    return $query->rows;
    }
    
     public function update($data)
    { 
    $B = $data['B'];$Bt = $data['Bt'];$Rs = $data['Rs'];$Rg = $data['Rg'];$Psliver = $data['Psliver'];$Pgold = $data['Pgold'];$TD1 = $data['TD1'];$TD2 = $data['TD2'];
    $sql = "UPDATE " . DB_PREFIX . "parameter SET B='$B',Bt='$Bt',Rs='$Rs',Rg='$Rg',Psliver='$Psliver',Pgold='$Pgold',TD1='$TD1',TD2='$TD2'";
    $query = $this->db->query($sql);		  
    }
}
?>
